<admintpl file="header" />

<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('PaymentReview/index')}">工程款支付报审表管理</a></li>
            <li class="active"><a href="{:U('PaymentReview/add')}">新增工程款支付报审</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <form method="post" class="form-horizontal" action="{:U('PaymentReview/addPostImp')}">
                                <input type="hidden" name="audit_level" value="2" />
                                <input type="hidden" name="report_type" value="1" />
                                <input type="hidden" name="audit_status" value="1" />
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>工程款支付报审表</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to"><label>流程名称:</label><input type="text" class="input-xt input-deptname" name="process_name" value=""/></p>
                                        <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" required value="" /></p>
                                    </div>
                                    <div class="col-md-12">
                                        <p>
                                            <label>工程名称:</label><input type="text" class="input-xt input-deptname" value="{$job_name}" readonly/>
                                        </p>
                                    </div>
                                </div>
                                <table class="table table-bordered">
                                    <tr>
                                        <td style="border-right:none !important;">
                                            <p>
                                                <label>致：<input type="text" class="input-xt input-deptname" name="supervisory_department" value="浙江泛华工程监理有限公司" readonly/>（项目监理机构）:</label>
                                            </p>
                                            <p class="indent20">
                                                我方已完成<input type="text" class="input-xt input-longname" name="job_content" value="" />工作，该本月工程量清单计价为：<input type="text" class="input-xt input-name" 
                                                name="list_pricing" value="" />元。建设单位应支付该工程款的75%即<input type="text" id="amount" class="input-xt input-name" 
                                                name="payables" value="" />元（大写）<input type="text" id="amount_in_words" class="input-xt input-deptname" name="amount_in_words" value="" />，现将有关资料报上，请予以审核。
                                            </p>
                                            <p></p>
                                            <p class="indent20">
                                                附件：
                                                <div class="controls" style="margin-left: 12px">
                                                    <ol>
                                                        <li>
                                                        	工程量清单报审表
                                                            <a class="btn btn-primary uplodBtn" style="padding: 6px;margin: 15px;line-height: 0.7em;" name="1">上传</a>
                                                        </li>
                                                        <li>
                                                        	现场工程量计量表
                                                            <a class="btn btn-primary uplodBtn" style="padding: 6px;margin: 15px;line-height: 0.7em;" name="2">上传</a>
                                                        </li>
                                                    </ol>
                                                </div>
                                            </p>
                                            <input type="hidden" name="uploadType" id="uploadType" value="" />
                                            <div class="signature">
                                                <p>
                                                    承包单位（盖章）
                                                </p>
                                                <p>
                                                    项目经理（签字)
                                                </p>
                                                <p>
	                                           		<input type="text" class="js-date input-xt input-date" name="publish_time" value="<php>echo date('Y-m-d');</php>" required />
	                                        	</p>  
                                            </div>
                                        </td>
                                </table>
                                <div class="form-actions">
                                    <a class="btn btn-primary" name="">{:L('SAVE')}</a>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </form>                   
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__TMPL__Public/assets/js/convertCurrency.js"></script>
    <script type="text/javascript">
		$(document).ready(function(e) {
			$("#amount").keyup(function(){
				var val=$("#amount").val();
				var word=atoc(val);
				$("#amount_in_words").val(word);
			});
			// 点击上传按钮
			$(".btn-primary").click(function(){
				$(".tips_error").remove();
				var code = $("input[name='code']").val();
				if(code == ""){
					$(".form-actions").append("<span class=\"tips_error\">请先输入申请编号信息！</span>");
					$("input[name='code']").focus()
					return false;
				}
				$("#uploadType").val($(this).attr("name"));
				$("form").submit();
			});
		});
	</script>
</body>
</html>